package pack1015.jicheng;

public class App {

    private static void a() {
        JavaTeacher1 j = new JavaTeacher1();
        j.school = "宝鸡文理学院";
        j.name = "张三";
        j.inter();
        j.lesson();
        NetTeacher1 n = new NetTeacher1();
        n.name = "李四";
        n.school = "西安文理学院";
        n.inter();
        n.lesson();
    }

    private static void b(){
        JavaTeacher2 j = new JavaTeacher2();
        j.school = "宝鸡文理学院";
        j.name = "张三";
        j.inter();
        j.lesson();
    }
    public static void main(String[] args) {
        b();
    }
}